]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Don't special case resetting cursor
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 8 Oct 2025 10:00:49 +0000 (12:00 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:42:59 +0000 (14:42 +0100)
The case expressed in the comment does not seem to apply anymore,
we can reset the cursor as expected on every leave event.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3912>
(cherry picked from commit dc97d0a4d63b58806c53e631ea8d6217787f6a85)

js/ui/screenshot.js

index 209207710b3f34cedc4a4afbda94a6655cda9a27..f3ac6fc28c1305d78c759f1fcefd7cde0f04f71c 100644 (file)
@@ -716,12 +716,7 @@ const UIAreaSelector = GObject.registerClass({
     }
 
     vfunc_leave_event(event) {
-        // If we're dragging and go over the panel we still get a leave event
-        // for some reason, even though we have a grab. We don't want to switch
-        // the cursor when we're dragging.
-        if (!this._dragButton)
-            global.display.set_cursor(Meta.Cursor.DEFAULT);
-
+        global.display.set_cursor(Meta.Cursor.DEFAULT);
         return super.vfunc_leave_event(event);
     }
 });